package com.ssq.common;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Config {
	static Properties prop;
	static{
		prop = new Properties();
		//--读取配置文件
		String fileName = "D:\\workspace\\SSQ\\src\\number.properties";
		InputStream  fis;
		try {
			fis = new BufferedInputStream(new FileInputStream(fileName));
			prop.load(fis);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	
	public static String getValue(String key){
		return prop.getProperty(key);
	}
	
}
